import request from '@/utils/request'

export function createProv(data) {
  return request({
    url: '/admin/leaves/prov/createProv',
    method: 'post',
    data
  })
}

export function deleteProv(fpid) {
  return request({
    url: `/admin/leaves/prov/deleteProv/${fpid}`,
    method: 'delete'
  })
}

export function updateProv(prov) {
  return request({
    url: '/admin/leaves/prov/updateProv',
    method: 'put',
    data: prov
  })
}

export function getProvList(searchObj) {
  return request({
    url: `/admin/leaves/prov/getProvList`,
    method: 'post',
    data: searchObj
  })
}
